<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SPHinXsys: SPH::GridDataPackage&lt; PKG_SIZE, ADDRS_SIZE &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SPHinXsys
   &#160;<span id="projectnumber">alpha version</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespace_s_p_h.html">SPH</a></li><li class="navelem"><a class="el" href="class_s_p_h_1_1_grid_data_package.html">GridDataPackage</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="class_s_p_h_1_1_grid_data_package-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">SPH::GridDataPackage&lt; PKG_SIZE, ADDRS_SIZE &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Abstract base class for a data package whose data are defined on the grids of a small mesh patch. note tha ADDRS_SIZE = PKG_SIZE + 2 * pkg_addrs_buffer_; Also note that, while the mesh lower bound locates the first data address, the data lower bound locates the first data.  
 <a href="class_s_p_h_1_1_grid_data_package.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="mesh__with__data__packages_8h_source.html">mesh_with_data_packages.h</a>&gt;</code></p>

<p>Inherits <a class="el" href="class_s_p_h_1_1_base_data_package.html">SPH::BaseDataPackage</a>, and <a class="el" href="class_s_p_h_1_1_base_mesh.html">SPH::BaseMesh</a>.</p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_s_p_h_1_1_grid_data_package_1_1assign_package_data_address.html">assignPackageDataAddress</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_s_p_h_1_1_grid_data_package_1_1initialize_package_data_address.html">initializePackageDataAddress</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a3935708e7f458e1b649d49ea68c78db6"><td class="memTemplParams" colspan="2"><a id="a3935708e7f458e1b649d49ea68c78db6"></a>
template&lt;typename DataType &gt; </td></tr>
<tr class="memitem:a3935708e7f458e1b649d49ea68c78db6"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><b>PackageData</b> = PackageDataMatrix&lt; DataType, PKG_SIZE &gt;</td></tr>
<tr class="separator:a3935708e7f458e1b649d49ea68c78db6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c905e51c64ef6b8a686123f618aef8e"><td class="memTemplParams" colspan="2"><a id="a0c905e51c64ef6b8a686123f618aef8e"></a>
template&lt;typename DataType &gt; </td></tr>
<tr class="memitem:a0c905e51c64ef6b8a686123f618aef8e"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><b>PackageDataAddress</b> = PackageDataMatrix&lt; DataType *, ADDRS_SIZE &gt;</td></tr>
<tr class="separator:a0c905e51c64ef6b8a686123f618aef8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae09f658b65a8551cf9c0ba07fb62c54d"><td class="memTemplParams" colspan="2">template&lt;typename DataType &gt; </td></tr>
<tr class="memitem:ae09f658b65a8551cf9c0ba07fb62c54d"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_grid_data_package.html#ae09f658b65a8551cf9c0ba07fb62c54d">PackageTemporaryData</a> = PackageDataMatrix&lt; DataType, ADDRS_SIZE &gt;</td></tr>
<tr class="separator:ae09f658b65a8551cf9c0ba07fb62c54d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a5774113a5b3dc1062b3e035a386d0d1f"><td class="memItemLeft" align="right" valign="top"><a id="a5774113a5b3dc1062b3e035a386d0d1f"></a>
constexpr int&#160;</td><td class="memItemRight" valign="bottom"><b>PackageSize</b> ()</td></tr>
<tr class="separator:a5774113a5b3dc1062b3e035a386d0d1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4979f7971f435c12c8c714a5cbaaee1a"><td class="memItemLeft" align="right" valign="top"><a id="a4979f7971f435c12c8c714a5cbaaee1a"></a>
constexpr int&#160;</td><td class="memItemRight" valign="bottom"><b>AddressSize</b> ()</td></tr>
<tr class="separator:a4979f7971f435c12c8c714a5cbaaee1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb0aa34e83cc31bc06b1a8ee18aa6370"><td class="memItemLeft" align="right" valign="top"><a id="abb0aa34e83cc31bc06b1a8ee18aa6370"></a>
constexpr int&#160;</td><td class="memItemRight" valign="bottom"><b>AddressBufferWidth</b> ()</td></tr>
<tr class="separator:abb0aa34e83cc31bc06b1a8ee18aa6370"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c1f91e069fb15ee0714ace437ad1707"><td class="memItemLeft" align="right" valign="top"><a id="a0c1f91e069fb15ee0714ace437ad1707"></a>
constexpr int&#160;</td><td class="memItemRight" valign="bottom"><b>OperationUpperBound</b> ()</td></tr>
<tr class="separator:a0c1f91e069fb15ee0714ace437ad1707"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d7480ca1dbaeb92a46c4328ccc07e3b"><td class="memItemLeft" align="right" valign="top">Vecd&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_grid_data_package.html#a3d7480ca1dbaeb92a46c4328ccc07e3b">DataLowerBound</a> ()</td></tr>
<tr class="separator:a3d7480ca1dbaeb92a46c4328ccc07e3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a940f0dab2ea8f5488b98f1de47869d15"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_grid_data_package.html#a940f0dab2ea8f5488b98f1de47869d15">initializePackageGeometry</a> (const Vecd &amp;pkg_lower_bound, Real data_spacing)</td></tr>
<tr class="separator:a940f0dab2ea8f5488b98f1de47869d15"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad382cedfd9a208be6431e294b2c5191f"><td class="memTemplParams" colspan="2">template&lt;typename DataType &gt; </td></tr>
<tr class="memitem:ad382cedfd9a208be6431e294b2c5191f"><td class="memTemplItemLeft" align="right" valign="top">DataType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_grid_data_package.html#ad382cedfd9a208be6431e294b2c5191f">probeDataPackage</a> (PackageDataAddress&lt; DataType &gt; &amp;pkg_data_addrs, const Vecd &amp;position)</td></tr>
<tr class="separator:ad382cedfd9a208be6431e294b2c5191f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9c9457f012597409dd631a63f1daa04"><td class="memTemplParams" colspan="2">template&lt;typename InDataType , typename OutDataType &gt; </td></tr>
<tr class="memitem:ab9c9457f012597409dd631a63f1daa04"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_grid_data_package.html#ab9c9457f012597409dd631a63f1daa04">computeGradient</a> (PackageDataAddress&lt; InDataType &gt; &amp;in_pkg_data_addrs, PackageDataAddress&lt; OutDataType &gt; out_pkg_data_addrs, Real dt=0.0)</td></tr>
<tr class="separator:ab9c9457f012597409dd631a63f1daa04"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7bc5aafd2b8a443567913a2b4434b31"><td class="memTemplParams" colspan="2">template&lt;typename InDataType , typename OutDataType &gt; </td></tr>
<tr class="memitem:af7bc5aafd2b8a443567913a2b4434b31"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_grid_data_package.html#af7bc5aafd2b8a443567913a2b4434b31">computeNormalizedGradient</a> (PackageDataAddress&lt; InDataType &gt; &amp;in_pkg_data_addrs, PackageDataAddress&lt; OutDataType &gt; out_pkg_data_addrs, Real dt=0.0)</td></tr>
<tr class="separator:af7bc5aafd2b8a443567913a2b4434b31"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a432227665d87fce2842f9c748fd1da66"><td class="memItemLeft" align="right" valign="top"><a id="a432227665d87fce2842f9c748fd1da66"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>initializeSingularDataAddress</b> ()</td></tr>
<tr class="separator:a432227665d87fce2842f9c748fd1da66"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a414b09f72cf0534d4ba139e70251b32c"><td class="memItemLeft" align="right" valign="top"><a id="a414b09f72cf0534d4ba139e70251b32c"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>assignAllPackageDataAddress</b> (const <a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> &amp;addrs_index, <a class="el" href="class_s_p_h_1_1_grid_data_package.html">GridDataPackage</a> *src_pkg, const <a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> &amp;data_index)</td></tr>
<tr class="separator:a414b09f72cf0534d4ba139e70251b32c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_s_p_h_1_1_base_mesh"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_s_p_h_1_1_base_mesh')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_s_p_h_1_1_base_mesh.html">SPH::BaseMesh</a></td></tr>
<tr class="memitem:a06e00f3689429e2b174e3da6a7021900 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top"><a id="a06e00f3689429e2b174e3da6a7021900"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>BaseMesh</b> (<a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> number_of_grid_points)</td></tr>
<tr class="separator:a06e00f3689429e2b174e3da6a7021900 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5e74d1de7df0fa2a21a35a52298fb4c inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top"><a id="ac5e74d1de7df0fa2a21a35a52298fb4c"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>BaseMesh</b> (Vecd mesh_lower_bound, Real grid_spacing, <a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> number_of_grid_points)</td></tr>
<tr class="separator:ac5e74d1de7df0fa2a21a35a52298fb4c inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adfccde797ba9d7b610933a12c6837768 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top"><a id="adfccde797ba9d7b610933a12c6837768"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>BaseMesh</b> (<a class="el" href="class_s_p_h_1_1_base_bounding_box.html">BoundingBox</a> tentative_bounds, Real grid_spacing, <a class="el" href="classsize__t.html">size_t</a> buffer_width)</td></tr>
<tr class="separator:adfccde797ba9d7b610933a12c6837768 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00a3bee5412ec539c8cd068d504cd45b inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top"><a id="a00a3bee5412ec539c8cd068d504cd45b"></a>
Vecd&#160;</td><td class="memItemRight" valign="bottom"><b>MeshLowerBound</b> ()</td></tr>
<tr class="separator:a00a3bee5412ec539c8cd068d504cd45b inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a075244782af1e6dccff264c569e29dab inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top"><a id="a075244782af1e6dccff264c569e29dab"></a>
Real&#160;</td><td class="memItemRight" valign="bottom"><b>GridSpacing</b> ()</td></tr>
<tr class="separator:a075244782af1e6dccff264c569e29dab inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6f44b0d0886d0fd8cbbbded978fca8c inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top"><a id="ad6f44b0d0886d0fd8cbbbded978fca8c"></a>
<a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a>&#160;</td><td class="memItemRight" valign="bottom"><b>NumberOfGridPoints</b> ()</td></tr>
<tr class="separator:ad6f44b0d0886d0fd8cbbbded978fca8c inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a02486b6eeb392d892833863a6e0c4307 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top"><a id="a02486b6eeb392d892833863a6e0c4307"></a>
<a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a>&#160;</td><td class="memItemRight" valign="bottom"><b>NumberOfGridPointsFromNumberOfCells</b> (const <a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> &amp;number_of_cells)</td></tr>
<tr class="separator:a02486b6eeb392d892833863a6e0c4307 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a486a7d7dc1b00d80e3435cb6da248cf2 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top"><a id="a486a7d7dc1b00d80e3435cb6da248cf2"></a>
<a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a>&#160;</td><td class="memItemRight" valign="bottom"><b>NumberOfCellsFromNumberOfGridPoints</b> (const <a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> &amp;number_of_grid_points)</td></tr>
<tr class="separator:a486a7d7dc1b00d80e3435cb6da248cf2 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8fd4caba5139cec4ae745eee2d3cf4ba inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top"><a id="a8fd4caba5139cec4ae745eee2d3cf4ba"></a>
Vecd&#160;</td><td class="memItemRight" valign="bottom"><b>GridPositionFromCellPosition</b> (const Vecd &amp;cell_position)</td></tr>
<tr class="separator:a8fd4caba5139cec4ae745eee2d3cf4ba inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a64e9c3be61671675ce2a05751abf99b3 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top"><a id="a64e9c3be61671675ce2a05751abf99b3"></a>
<a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a>&#160;</td><td class="memItemRight" valign="bottom"><b>CellIndexFromPosition</b> (const Vecd &amp;position)</td></tr>
<tr class="separator:a64e9c3be61671675ce2a05751abf99b3 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a521c1c62ca5ceb63b9d03ac81653ed86 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top"><a id="a521c1c62ca5ceb63b9d03ac81653ed86"></a>
Vecd&#160;</td><td class="memItemRight" valign="bottom"><b>CellPositionFromIndex</b> (const <a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> &amp;cell_index)</td></tr>
<tr class="separator:a521c1c62ca5ceb63b9d03ac81653ed86 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4786bf9f54d35c848819ad006f93bfa inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top">Vecd&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_mesh.html#ac4786bf9f54d35c848819ad006f93bfa">GridPositionFromIndex</a> (const <a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> &amp;grid_index)</td></tr>
<tr class="separator:ac4786bf9f54d35c848819ad006f93bfa inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24c765e7b9960e5dc90ff08e4be8c897 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top"><a id="a24c765e7b9960e5dc90ff08e4be8c897"></a>
<a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a>&#160;</td><td class="memItemRight" valign="bottom"><b>transfer1DtoMeshIndex</b> (const <a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> &amp;number_of_mesh_indexes, <a class="el" href="classsize__t.html">size_t</a> i)</td></tr>
<tr class="separator:a24c765e7b9960e5dc90ff08e4be8c897 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0e4e22fec94130d8d25b13b6dfeceee inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top"><a id="ae0e4e22fec94130d8d25b13b6dfeceee"></a>
<a class="el" href="classsize__t.html">size_t</a>&#160;</td><td class="memItemRight" valign="bottom"><b>transferMeshIndexTo1D</b> (const <a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> &amp;number_of_mesh_indexes, const <a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> &amp;mesh_index)</td></tr>
<tr class="separator:ae0e4e22fec94130d8d25b13b6dfeceee inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae2b22b19b1175c3e5d8c014e00a1602c inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsize__t.html">size_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_mesh.html#ae2b22b19b1175c3e5d8c014e00a1602c">MortonCode</a> (const <a class="el" href="classsize__t.html">size_t</a> &amp;i)</td></tr>
<tr class="separator:ae2b22b19b1175c3e5d8c014e00a1602c inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9b5be75a20c93edb12261651fcc0b07 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsize__t.html">size_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_mesh.html#ac9b5be75a20c93edb12261651fcc0b07">transferMeshIndexToMortonOrder</a> (const <a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> &amp;mesh_index)</td></tr>
<tr class="separator:ac9b5be75a20c93edb12261651fcc0b07 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a4db0fb2fefe7c44699d63d7c1ab2bd56"><td class="memItemLeft" align="right" valign="top"><a id="a4db0fb2fefe7c44699d63d7c1ab2bd56"></a>
<a class="el" href="namespace_s_p_h.html#a4b84ef4f2af9bca10b5af5c7e1d6dc72">GeneralDataAssemble</a>&lt; PackageData &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>all_pkg_data_</b></td></tr>
<tr class="separator:a4db0fb2fefe7c44699d63d7c1ab2bd56"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a35c064fad1c570b8a9d11d1f17c73edc"><td class="memItemLeft" align="right" valign="top"><a id="a35c064fad1c570b8a9d11d1f17c73edc"></a>
<a class="el" href="namespace_s_p_h.html#a4b84ef4f2af9bca10b5af5c7e1d6dc72">GeneralDataAssemble</a>&lt; PackageDataAddress &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>all_pkg_data_addrs_</b></td></tr>
<tr class="separator:a35c064fad1c570b8a9d11d1f17c73edc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_attribs_class_s_p_h_1_1_base_data_package"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_class_s_p_h_1_1_base_data_package')"><img src="closed.png" alt="-"/>&#160;Public Attributes inherited from <a class="el" href="class_s_p_h_1_1_base_data_package.html">SPH::BaseDataPackage</a></td></tr>
<tr class="memitem:aa1fa10352332d8afac0ee1bf648e7ae9 inherit pub_attribs_class_s_p_h_1_1_base_data_package"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_data_package.html#aa1fa10352332d8afac0ee1bf648e7ae9">pkg_index_</a></td></tr>
<tr class="separator:aa1fa10352332d8afac0ee1bf648e7ae9 inherit pub_attribs_class_s_p_h_1_1_base_data_package"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5ba8cdc3c399d01c787a665e0b16c01 inherit pub_attribs_class_s_p_h_1_1_base_data_package"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbool.html">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_data_package.html#af5ba8cdc3c399d01c787a665e0b16c01">is_inner_pkg_</a></td></tr>
<tr class="separator:af5ba8cdc3c399d01c787a665e0b16c01 inherit pub_attribs_class_s_p_h_1_1_base_data_package"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:ad7c732ea52f9f562f3a5fee44a6dd7fd"><td class="memTemplParams" colspan="2">template&lt;typename DataType &gt; </td></tr>
<tr class="memitem:ad7c732ea52f9f562f3a5fee44a6dd7fd"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_grid_data_package.html#ad7c732ea52f9f562f3a5fee44a6dd7fd">registerPackageData</a> (PackageData&lt; DataType &gt; &amp;pkg_data, PackageDataAddress&lt; DataType &gt; &amp;pkg_data_addrs)</td></tr>
<tr class="separator:ad7c732ea52f9f562f3a5fee44a6dd7fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71ffc4c329d8a365e4c37dde59f1a4b5"><td class="memTemplParams" colspan="2">template&lt;typename DataType &gt; </td></tr>
<tr class="memitem:a71ffc4c329d8a365e4c37dde59f1a4b5"><td class="memTemplItemLeft" align="right" valign="top">DataType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_grid_data_package.html#a71ffc4c329d8a365e4c37dde59f1a4b5">CornerAverage</a> (PackageDataAddress&lt; DataType &gt; &amp;pkg_data_addrs, <a class="el" href="class_s_p_h_1_1_s_vec.html">Veci</a> addrs_index, <a class="el" href="class_s_p_h_1_1_s_vec.html">Veci</a> corner_direction)</td></tr>
<tr class="separator:a71ffc4c329d8a365e4c37dde59f1a4b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a16f3d6837c545781f84b5004c7607257"><td class="memItemLeft" align="right" valign="top"><a id="a16f3d6837c545781f84b5004c7607257"></a>
<a class="el" href="struct_s_p_h_1_1_data_assemble_operation.html">DataAssembleOperation</a>&lt; <a class="el" href="struct_s_p_h_1_1_grid_data_package_1_1initialize_package_data_address.html">initializePackageDataAddress</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>initialize_pkg_data_addrs_</b></td></tr>
<tr class="separator:a16f3d6837c545781f84b5004c7607257"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3eb645bdcd2344e71c7f98a734f3a3bf"><td class="memItemLeft" align="right" valign="top"><a id="a3eb645bdcd2344e71c7f98a734f3a3bf"></a>
<a class="el" href="struct_s_p_h_1_1_data_assemble_operation.html">DataAssembleOperation</a>&lt; <a class="el" href="struct_s_p_h_1_1_grid_data_package_1_1assign_package_data_address.html">assignPackageDataAddress</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>assign_pkg_data_addrs_</b></td></tr>
<tr class="separator:a3eb645bdcd2344e71c7f98a734f3a3bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_class_s_p_h_1_1_base_mesh"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_s_p_h_1_1_base_mesh')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="class_s_p_h_1_1_base_mesh.html">SPH::BaseMesh</a></td></tr>
<tr class="memitem:ac8559448b24066e06263bff0aa5ba75b inherit pro_attribs_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top">Vecd&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_mesh.html#ac8559448b24066e06263bff0aa5ba75b">mesh_lower_bound_</a></td></tr>
<tr class="separator:ac8559448b24066e06263bff0aa5ba75b inherit pro_attribs_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6c2e186b771c3573486cdcbaa362b25 inherit pro_attribs_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top">Real&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_mesh.html#af6c2e186b771c3573486cdcbaa362b25">grid_spacing_</a></td></tr>
<tr class="separator:af6c2e186b771c3573486cdcbaa362b25 inherit pro_attribs_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e1e27e30924c3390d8cdd20dba606fd inherit pro_attribs_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_mesh.html#a5e1e27e30924c3390d8cdd20dba606fd">number_of_grid_points_</a></td></tr>
<tr class="separator:a5e1e27e30924c3390d8cdd20dba606fd inherit pro_attribs_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;int PKG_SIZE, int ADDRS_SIZE&gt;<br />
class SPH::GridDataPackage&lt; PKG_SIZE, ADDRS_SIZE &gt;</h3>

<p>Abstract base class for a data package whose data are defined on the grids of a small mesh patch. note tha ADDRS_SIZE = PKG_SIZE + 2 * pkg_addrs_buffer_; Also note that, while the mesh lower bound locates the first data address, the data lower bound locates the first data. </p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="ae09f658b65a8551cf9c0ba07fb62c54d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae09f658b65a8551cf9c0ba07fb62c54d">&#9670;&nbsp;</a></span>PackageTemporaryData</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int PKG_SIZE, int ADDRS_SIZE&gt; </div>
<div class="memtemplate">
template&lt;typename DataType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="class_s_p_h_1_1_grid_data_package.html">SPH::GridDataPackage</a>&lt; PKG_SIZE, ADDRS_SIZE &gt;::<a class="el" href="class_s_p_h_1_1_grid_data_package.html#ae09f658b65a8551cf9c0ba07fb62c54d">PackageTemporaryData</a> =  PackageDataMatrix&lt;DataType, ADDRS_SIZE&gt;</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Matrix data for temporary usage. Note that it is array with ADDRS_SIZE. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ab9c9457f012597409dd631a63f1daa04"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab9c9457f012597409dd631a63f1daa04">&#9670;&nbsp;</a></span>computeGradient()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int PKG_SIZE, int ADDRS_SIZE&gt; </div>
<div class="memtemplate">
template&lt;typename InDataType , typename OutDataType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_s_p_h_1_1_grid_data_package.html">SPH::GridDataPackage</a>&lt; PKG_SIZE, ADDRS_SIZE &gt;::computeGradient </td>
          <td>(</td>
          <td class="paramtype">PackageDataAddress&lt; InDataType &gt; &amp;&#160;</td>
          <td class="paramname"><em>in_pkg_data_addrs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PackageDataAddress&lt; OutDataType &gt;&#160;</td>
          <td class="paramname"><em>out_pkg_data_addrs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Real&#160;</td>
          <td class="paramname"><em>dt</em> = <code>0.0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This function compute gradient transform within data package </p>

</div>
</div>
<a id="af7bc5aafd2b8a443567913a2b4434b31"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af7bc5aafd2b8a443567913a2b4434b31">&#9670;&nbsp;</a></span>computeNormalizedGradient()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int PKG_SIZE, int ADDRS_SIZE&gt; </div>
<div class="memtemplate">
template&lt;typename InDataType , typename OutDataType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_s_p_h_1_1_grid_data_package.html">SPH::GridDataPackage</a>&lt; PKG_SIZE, ADDRS_SIZE &gt;::computeNormalizedGradient </td>
          <td>(</td>
          <td class="paramtype">PackageDataAddress&lt; InDataType &gt; &amp;&#160;</td>
          <td class="paramname"><em>in_pkg_data_addrs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PackageDataAddress&lt; OutDataType &gt;&#160;</td>
          <td class="paramname"><em>out_pkg_data_addrs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Real&#160;</td>
          <td class="paramname"><em>dt</em> = <code>0.0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This function compute normalized gradient transform within data package </p>

</div>
</div>
<a id="a71ffc4c329d8a365e4c37dde59f1a4b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a71ffc4c329d8a365e4c37dde59f1a4b5">&#9670;&nbsp;</a></span>CornerAverage()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int PKG_SIZE, int ADDRS_SIZE&gt; </div>
<div class="memtemplate">
template&lt;typename DataType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">DataType <a class="el" href="class_s_p_h_1_1_grid_data_package.html">SPH::GridDataPackage</a>&lt; PKG_SIZE, ADDRS_SIZE &gt;::CornerAverage </td>
          <td>(</td>
          <td class="paramtype">PackageDataAddress&lt; DataType &gt; &amp;&#160;</td>
          <td class="paramname"><em>pkg_data_addrs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_s_p_h_1_1_s_vec.html">Veci</a>&#160;</td>
          <td class="paramname"><em>addrs_index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_s_p_h_1_1_s_vec.html">Veci</a>&#160;</td>
          <td class="paramname"><em>corner_direction</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>obtain averaged value at a corner of a data cell </p>

</div>
</div>
<a id="a3d7480ca1dbaeb92a46c4328ccc07e3b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d7480ca1dbaeb92a46c4328ccc07e3b">&#9670;&nbsp;</a></span>DataLowerBound()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int PKG_SIZE, int ADDRS_SIZE&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Vecd <a class="el" href="class_s_p_h_1_1_grid_data_package.html">SPH::GridDataPackage</a>&lt; PKG_SIZE, ADDRS_SIZE &gt;::DataLowerBound </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>lower bound coordinate for the data as reference </p>

</div>
</div>
<a id="a940f0dab2ea8f5488b98f1de47869d15"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a940f0dab2ea8f5488b98f1de47869d15">&#9670;&nbsp;</a></span>initializePackageGeometry()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int PKG_SIZE, int ADDRS_SIZE&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_s_p_h_1_1_grid_data_package.html">SPH::GridDataPackage</a>&lt; PKG_SIZE, ADDRS_SIZE &gt;::initializePackageGeometry </td>
          <td>(</td>
          <td class="paramtype">const Vecd &amp;&#160;</td>
          <td class="paramname"><em>pkg_lower_bound</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Real&#160;</td>
          <td class="paramname"><em>data_spacing</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>initialize package mesh geometric information. </p>

</div>
</div>
<a id="ad382cedfd9a208be6431e294b2c5191f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad382cedfd9a208be6431e294b2c5191f">&#9670;&nbsp;</a></span>probeDataPackage()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int PKG_SIZE, int ADDRS_SIZE&gt; </div>
<div class="memtemplate">
template&lt;class DataType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">DataType <a class="el" href="class_s_p_h_1_1_grid_data_package.html">SPH::GridDataPackage</a>&lt; PKG_SIZE, ADDRS_SIZE &gt;::probeDataPackage </td>
          <td>(</td>
          <td class="paramtype">PackageDataAddress&lt; DataType &gt; &amp;&#160;</td>
          <td class="paramname"><em>pkg_data_addrs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Vecd &amp;&#160;</td>
          <td class="paramname"><em>position</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This function probes by applying bi and tri-linear interpolation within the package. </p>

</div>
</div>
<a id="ad7c732ea52f9f562f3a5fee44a6dd7fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad7c732ea52f9f562f3a5fee44a6dd7fd">&#9670;&nbsp;</a></span>registerPackageData()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;int PKG_SIZE, int ADDRS_SIZE&gt; </div>
<div class="memtemplate">
template&lt;typename DataType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_s_p_h_1_1_grid_data_package.html">SPH::GridDataPackage</a>&lt; PKG_SIZE, ADDRS_SIZE &gt;::registerPackageData </td>
          <td>(</td>
          <td class="paramtype">PackageData&lt; DataType &gt; &amp;&#160;</td>
          <td class="paramname"><em>pkg_data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PackageDataAddress&lt; DataType &gt; &amp;&#160;</td>
          <td class="paramname"><em>pkg_data_addrs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>register a variable defined in a class (can be non-particle class) </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>SPHINXsys/src/shared/meshes/<a class="el" href="mesh__with__data__packages_8h_source.html">mesh_with_data_packages.h</a></li>
<li>SPHINXsys/src/for_2D_build/meshes/<a class="el" href="for__2_d__build_2meshes_2mesh__with__data__packages_8hpp_source.html">mesh_with_data_packages.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
